package com.crazy.crazyuserservice.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.crazy.crazymodel.model.entity.Admin;
import com.crazy.crazymodel.model.vo.LoginAdminVO;

import javax.servlet.http.HttpServletRequest;

/**
 * 操作员服务，其实只有登录一个服务
 */
public interface AdminService extends IService<Admin> {
    /**
     * 操作员登录
     *
     * @param adminAccount  操作员账户
     * @param adminPassword 操作员密码
     * @param request
     * @return 脱敏后的用户信息
     */
    LoginAdminVO adminLogin(String adminAccount, String adminPassword, HttpServletRequest request);

    /**
     * 获取脱敏的已登录操作员信息
     *
     * @param admin
     * @return
     */
    public LoginAdminVO getLoginAdminVO(Admin admin);
}
